from functools import reduce

def prod(l):
	return reduce(lambda x, y: x * y, l)
	
l = [3, 5, 7, 9]
print(prod(l))